package sevensoft.创建型模式.单例模式.懒汉式;

import java.util.Objects;

public class Singleton3 {

    private Singleton3(){}

    private static Singleton3 singleton3;


    public static Singleton3 getInstance(){
        return Objects.nonNull(singleton3)?singleton3:(singleton3 = new Singleton3());
    }
}
